
module.exports = {
    title: 'Web3D文档管理',
    base: "/vuepress-doc/",
    head: [
        ['link', { rel: 'icon', href: '/favicons/favicon-16x16.png', type: 'image/png', sizes: '16x16' }],
        ["meta", { name: "referrer", content: "no-referrer" }]
    ],
    port: 9090,
    locales: { // 站点多语言配置
        '/': {
            lang: 'zh-CN', // 将会被设置为 <html> 的 lang 属性
            title: 'Web3D文档管理',
            description: '随着浏览器性能和网络带宽的提升 使得3D技术不再是桌面的专利 打破传统平面展示模式前端方向主要流向的3D图形库包括Three.js和WebGLWebGL灵活高性能，但代码量大，难度大，需要掌握很多底层知识和数学知识Threejs封装了WebGL的底层细节，可拓展性强，有很多开源的插件和工具，更易上手就像2G时代文字信息是主要传输媒介 3G时代的图片 4G时代的视频随着硬件性能与技术的提升，未来的前端也一定是3D的'
        },
        //   '/en/': {
        //       lang: 'en-US',
        //       title: 'VuePress',
        //       description: 'Vue-powered Static Site Generator'
        //   }
    },
    extraWatchFiles: [],
    // theme: '@vuepress-theme-default', // 主题
    themeConfig: {
        search: true, // 警用默认的搜索框
        nextLinks: true, // 上/先一篇链接
        prevLinks: true,
        // sidebar: 'auto', // 自动显示
        // sidebar: [ // 全部显示
        //     '/guide/',
        //     '/config/base/',
        //     'config/high/'
        // ],

        sidebar: {
            '/left/':[
                {
                    title: '1.学前说明',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/1/1.md', '/left/1/2.md', '/left/1/3.md']
                },
                {
                    title: '2.Three.js快速入门',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/2/1.md', '/left/2/2.md', '/left/2/3.md', '/left/2/4.md', '/left/2/5.md', '/left/2/6.md', '/left/2/7.md', '/left/2/8.md'
                        , '/left/2/9.md', '/left/2/10.md', '/left/2/11.md', '/left/2/12.md', '/left/2/13.md', '/left/2/14.md', '/left/2/15.md', '/left/2/16.md'
                        , '/left/2/17.md', '/left/2/18.md', '/left/2/19.md', '/left/2/20.md', '/left/2/21.md', '/left/2/22.md', '/left/2/23.md', '/left/2/24.md', '/left/2/25.md']
                },
                {
                    title: '3.几何体BufferGeometry',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/3/1.md', '/left/3/2.md', '/left/3/3.md', '/left/3/4.md', '/left/3/5.md',
                        '/left/3/6.md', '/left/3/7.md', '/left/3/8.md']
                },
                {
                    title: '4.模型对象、材质',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/4/1.md', '/left/4/2.md', '/left/4/3.md', '/left/4/4.md', '/left/4/5.md',
                        '/left/4/6.md']
                },
                {
                    title: '5.层级模型',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/5/1.md', '/left/5/2.md', '/left/5/3.md', '/left/5/4.md', '/left/5/5.md',
                        '/left/5/6.md']
                },
                {
                    title: '6.顶点UV坐标、纹理贴图',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/6/1.md', '/left/6/2.md', '/left/6/3.md', '/left/6/4.md', '/left/6/5.md',
                        '/left/6/6.md']
                },
                {
                    title: '7.加载外部三维模型(gltf)',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/7/1.md', '/left/7/2.md', '/left/7/3.md', '/left/7/4.md', '/left/7/5.md',
                        '/left/7/6.md', '/left/7/7.md', '/left/7/8.md', '/left/7/9.md', '/left/7/10.md']
                },
                {
                    title: '8.PBR材质与纹理贴图',
                    collapsable: true,
                    sidebarDepth: 0,
                    children: ['/left/8/1.md', '/left/8/2.md', '/left/8/3.md', '/left/8/4.md', '/left/8/5.md',
                        '/left/8/6.md', '/left/8/7.md']
                },
                {
                    title: "9.渲染器和前端UI界面 ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/9/1.md','/left/9/2.md','/left/9/3.md','/left/9/4.md','/left/9/5.md','/left/9/6.md','/left/9/7.md'
                    ]
                },
                {
                    title: "10.生成曲线、几何体 ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/10/1.md','/left/10/2.md','/left/10/3.md','/left/10/4.md','/left/10/5.md',
                        '/left/10/6.md','/left/10/7.md','/left/10/8.md','/left/10/9.md','/left/10/10.md',
                        '/left/10/11.md','/left/10/12.md','/left/10/13.md','/left/10/14.md','/left/10/15.md',
                        '/left/10/16.md','/left/10/17.md','/left/10/18.md','/left/10/19.md','/left/10/20.md',
                        '/left/10/21.md','/left/10/22.md'
                    ]
                },
                {
                    title: "11.相机基础 ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/11/1.md','/left/11/2.md','/left/11/3.md','/left/11/4.md','/left/11/5.md',
                        '/left/11/6.md','/left/11/7.md','/left/11/8.md','/left/11/9.md','/left/11/10.md'
                    ]
                },
                {
                    title: "12.光源和阴影 ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/12/1.md','/left/12/2.md','/left/12/3.md','/left/12/4.md','/left/12/5.md',
                        '/left/12/6.md','/left/12/7.md','/left/12/8.md'
                    ]
                },
                {
                    title: "13.精灵模型Sprite ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/13/1.md','/left/13/2.md','/left/13/3.md'
                    ]
                },
                {
                    title: "14.后处理EffectComposer ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/14/1.md','/left/14/2.md','/left/14/3.md','/left/14/4.md','/left/14/5.md',
                        '/left/14/6.md','/left/14/7.md'
                    ]
                },
                {
                    title: "15.射线拾取模型 ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/15/1.md','/left/15/2.md','/left/15/3.md','/left/15/4.md','/left/15/5.md',
                        '/left/15/6.md','/left/15/7.md'
                    ]
                },
                {
                    title: "16.场景标注标签信息 ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/16/1.md','/left/16/2.md','/left/16/3.md','/left/16/4.md','/left/16/5.md',
                        '/left/16/6.md','/left/16/7.md','/left/16/8.md','/left/16/9.md','/left/16/10.md',
                        '/left/16/11.md','/left/16/12.md'
                    ]
                },
                {
                    title: "17.关键帧动画 ",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/17/1.md','/left/17/2.md','/left/17/3.md','/left/17/4.md','/left/17/5.md',
                        '/left/17/6.md','/left/17/7.md','/left/17/8.md','/left/17/9.md','/left/17/10.md',
                        '/left/17/11.md'
                    ]
                },
                {
                    title: "18.动画库tween",
                    collapsable: true,
                    sidebarDepth: 0,
                    children: [
                        '/left/18/1.md','/left/18/2.md','/left/18/3.md','/left/18/4.md','/left/18/5.md',
                        '/left/18/6.md'
                    ]
                }
            ],
            '/high/':[
                {
                    "title": "1. 数学几何计算基础 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/1/1.md","/high/1/2.md","/high/1/3.md","/high/1/4.md","/high/1/5.md",
                        "/high/1/6.md"
                    ]
                },
                {
                    "title": "2.位移、速度、加速度(向量) ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/2/1.md","/high/2/2.md"
                    ]
                },
                {
                    "title": "3.向量点乘、叉乘 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/3/1.md","/high/3/2.md","/high/3/3.md","/high/3/4.md","/high/3/5.md",
                        "/high/3/6.md","/high/3/7.md","/high/3/8.md","/high/3/9.md","/high/3/10.md",
                        "/high/3/11.md","/high/3/12.md"
                    ]
                },
                {
                    "title": "4.四元数、欧拉角(角度姿态) ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/4/1.md","/high/4/2.md","/high/4/3.md","/high/4/4.md","/high/4/5.md"
                    ]
                },
                {
                    "title": "5.矩阵 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/5/1.md","/high/5/2.md","/high/5/3.md","/high/5/4.md","/high/5/5.md",
                        "/high/5/6.md"
                    ]
                },
                {
                    "title": "6.射线 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/6/1.md","/high/6/2.md"
                    ]
                },
                {
                    "title": "7.包围盒 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/7/1.md"
                    ]
                },
                {
                    "title": "8.第一、三人称漫游 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/8/1.md","/high/8/2.md","/high/8/3.md","/high/8/4.md","/high/8/5.md",
                        "/high/8/6.md","/high/8/7.md","/high/8/8.md","/high/8/9.md","/high/8/10.md",
                        "/high/8/11.md","/high/8/12.md","/high/8/13.md"
                    ]
                },
                {
                    "title": "9.漫游-八叉树碰撞检测 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/9/1.md","/high/9/2.md"
                    ]
                },
                {
                    "title": "10.CannonJS物理引擎 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/high/10/1.md","/high/10/2.md","/high/10/3.md","/high/10/4.md","/high/10/5.md",
                        "/high/10/6.md","/high/10/7.md","/high/10/8.md","/high/10/9.md","/high/10/10.md"
                    ]
                }
            ],
            '/shader/':[
                {
                    "title": "1.threejs Shader基础语法 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/shader/1/1.md","/shader/1/2.md","/shader/1/3.md","/shader/1/4.md","/shader/1/5.md",
                        "/shader/1/6.md","/shader/1/7.md","/shader/1/8.md","/shader/1/9.md","/shader/1/10.md",
                        "/shader/1/11.md","/shader/1/12.md"
                    ]
                },
                {
                    "title": "2.onBeforeCompile修改材质 ",
                    "collapsable": true,
                    "sidebarDepth": 0,
                    "children": [
                        "/shader/2/1.md","/shader/2/2.md","/shader/2/3.md","/shader/2/4.md","/shader/2/5.md",
                        "/shader/2/6.md","/shader/2/7.md"
                    ]
                }
            ]
        },
        sidebarDepth: 2, // 最大的深度为 2
        navbar: true, // 禁用导航栏
        displayAllHeaders: true, // 显示所有页面的标题链接 默认值：false
        locales: { // 默认主题多语言配置
            '/': {
                selectText: '选择语言',
                label: '简体中文',
                nav: [
                    { text: '首页', link: '/' },
                    { text: '博客', link: '/blog/' },
                    { text: 'WEBGPU', link: '/webgpu/' },
                    { text: '文档', link: '/left/1/1.md' },
                    {
                        text: 'THREEJS',
                        items: [
                            { text: '基础课程', link: '/left/1/1.md' },
                            { text: '进阶课程', link: '/high/1/1.md' },
                            { text: 'Shader', link: '/shader/1/1.md' }
                        ]
                    },
                    { text: 'TVbox源', link: '/share/tvbox/' },
                    { text: '下载页', link: 'https://yuanfang289.gitee.io/download' },
                ],
                lastUpdated: '上次更新', // string | boolean
            },
            // '/en/': {
            //     selectText: 'Languages',
            //     label: 'English',
            //     nav: [
            //         { text: 'home', link: '/en/' },
            //         { text: 'guide', link: '/en/guide/' },
            //         {
            //             text: 'config',
            //             items: [
            //                 { text: 'base', link: '/config/base/' },
            //                 { text: 'high', link: '/config/high/' }
            //             ]
            //         }
            //     ],
            //     lastUpdated: 'Last Updated', // string | boolean
            // }
        }
    }
}
